import { serializeParams } from "@masx200/search-hash-params-router";

export function getlinkmdandid(md: string, id: string): string {
    if (process.env.PRERENDER) {
        return "/" + serializeParams({ md }) + "#" + serializeParams({ id });
    } else {
        return "#" + serializeParams({ id, md: md });
    }
}
